<?php
    session_start();
    ob_start();
    function __autoload($TenLop)
    {
    	include_once "classes/" . $TenLop . ".php";
    }
    include_once "thuvien.php";
?>

<!DOCTYPE html>
<html>
    <header>
        <title>Khách Sạn AAA</title>
        <meta  http-equiv="content-type" content="text/html; charset=utf-8" />
        <meta name="shortcut icon" href="favicon.ico">
        <link rel="shortcut icon" href="favicon.ico"/>
        <link rel="stylesheet" type="text/css" href="css/dinhdang.css" />
        <script type="text/javascript" src="scripts/jquery-1.8.0.min.js"></script>
        <script type="text/javascript" src="scripts/jquery.validate.min.js"></script> 
        <!----Slider---->
        <link rel="stylesheet" href="css/slider.css"/>  
        <!---Date-->
        <script src="scripts/jquery-1.10.2.js"></script>
        <script src="scripts/jquery.min.js"></script>
        <script src="scripts/jquery.easing.1.3.js"></script>
        <script src="scripts/jquery-ui.js"></script>
        <script src="scripts/jquery.timer.js"></script>
        <script src="scripts/image-rotator.js"></script>
        <link rel="stylesheet" href="css/date.css" />
        <script>
            $(function() {
                $( "#datepicker" ).datepicker();
                $( "#datepicker1" ).datepicker();
            });
        </script>
        <!-- slowdown -->
        <link rel="stylesheet" href="css/datphong.css"/>
        <script> 
        $(document).ready(function(){
          $("#flip").click(function(){
            $("#panel").slideDown("slow");
            $("#fls").hide();
          });
        });
        </script>

    </header>
    
    <body>
    <div id="TrangWeb">
		<!--Dau Trang-->
        <div id="PhanDau">
        
        </div>
		
		<!--Giua Trang -->
        <div id="PhanGiua">
            <div>
                <a class="menungang" href="./">Trang Chủ</a>
                <a class="menungang" href="index.php?do=tintuc">Tin Tức</a>
                <a class="menungang" href="index.php?do=phong">Thông Tin Phòng</a>
                <a class="menungang" href="index.php?do=dichvu">Dịch Vụ</a>
                <a class="menungang" href="index.php?do=hinhanh">Hình Ảnh</a>
                <a class="menungang" href="index.php?do=lienhe">Liên Hệ</a>
            </div>
            
            <div id="BenTrai">
		<ul><h2>Khách Sạn AAA</h2>
                    <img src="images/logo.jpg" />
		</ul>
                <ul>
                    <a href="#super"><img src="images/superior_room.jpg" width="190" title="Superior Room"/></a>
                </ul>
                <ul>
                    <a href="#deluxe"><img src="images/deluxe_room.jpg" width="190" title="Deluxe Room"/></a>
                </ul>
                <ul>
                    <a href="#suite"><img src="images/executive_suite_room.jpg" width="190" title="Executive Suite Room" /></a>
                </ul>
                <ul>
                    <form id="frmdatphong" action="index.php?do=datphong_xuly" method="POST">
                        <table>
                            <tr>
                                <td colspan="2" align="left">
                                    <p>Ngày Nhận Phòng</p>
                                    <input type="text" id="datepicker" >
                                    <p>Ngày Trả Phòng</a>
                                    <input type="text" id="datepicker1" >
                                    <p>Loại Phòng</p>
                                    <select name="loaiphong">
                                        <option value="superior">Superior Room</option>
                                        <option value="deluxe">Deluxe Room</option>
                                        <option value="suite">Executive Suite</option>
                                    </select>
                                </td>
                            <tr>
                            <tr>
                                <td>Người Lớn</td>
                                <td><input type="text" name="NguoiLon" class="required" size="5"/></td>
                            </tr>
                            <tr>
                                <td>Trẻ Em</td>
                                <td><input type="text" name="TreEm" class="required" size="5"/></td>
                            </tr>
                            <tr id="fls">
                                <td colspan="2"><div id="flip"><p>Đặt Phòng</p></div></td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <div id="panel">
                                        <p>Họ Tên</p>
                                        <input type="text" name="HoTen" class="required" />
                                        <p>Số Điện Thoại</p>
                                        <input type="text" name="SDT" class="required" />
                                        <p>CMND/Hộ Chiếu</p>
                                        <input type="text" name="CMND" class="required" />
                                        <input type="submit" name="btnDatPhong" value="Đặt Phòng" align="center"/>
                                    </div>
                                </td>
                            </tr>    
                        </table>
                    </form>
                </ul>
                <ul id="dongho">
                    <embed src="data/clock.swf" quality="high" bgcolor="#ffffff" width="150" height="62" name="dongho" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
		</ul>
            </div>
            <div id="ChinhGiua">
                <?php
                    $do = isset($_GET['do']) ? $_GET['do'] : "home";

                    include $do . ".php";
            ?>
            </div>
        </div>     
		
		<!--Cuoi Trang-->
        <div id="PhanCuoi">
            <p>COPYRIGHT&copy; AAA HOTEL</p>
        </div>
    </div>
    </body>>
</html>
